#ifndef EXTENTENTRY_H_
#define EXTENTENTRY_H_

#include "Extent.h"  
#include "ExtentStatistics.h"

using namespace std;

class ExtentEntry{
public:
	//fields
	int my_time;
	Extent* my_extent;
	ExtentStatistics* my_stat;

	ExtentEntry(){};
	ExtentEntry (Extent* e, int time, ExtentStatistics* stat) { my_extent = e; my_time = time; my_stat = stat;};
	~ExtentEntry(){};//no need to delete extentStatistics and Extent - we are still using them afetr deleting extentEntry

	//Operators
	bool operator> (const ExtentEntry* b) const;
	bool operator< (const ExtentEntry* b) const;

	//Getters
	Extent* getMy_extent() { return my_extent; };
	int getMy_time() { return my_time; };
    ExtentStatistics* getMy_stat() { return my_stat; }; 
};
#endif	/* EXTENTENTRY_H_ */
